/** 
* All Rights Reserved , Copyright (C) 2020 , 青岛鼎信通讯股份有限公司
* 
* PmContractChangeServiceAuto
* 项目合同信息变更申请
* 
* 修改纪录
* 2020-11-03 版本：1.0 wudaliang 创建。
* @version 版本：1.0
* @author 作者：wudaliang
* 创建日期：2020-11-03
*/

package com.topscomm.pm.service.impl.auto;

import javax.annotation.Resource;
import com.topscomm.basic.IBasicDao;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import com.topscomm.pm.*;
import com.topscomm.pm.pojo.PmContractChangeEntity;
import com.topscomm.pm.dao.IPmContractChangeDao;


public class PmContractChangeServiceAuto extends PmService<PmContractChangeEntity,IPmContractChangeDao> {
	
	/**
	 * @author: wudaliang
	 * @date: 2020-11-03
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("contractid") != null) {
			temp = mapRow.get("contractid").toString();
			mapRow.put("dispcontractid", datacodeCache.getValueDynamic("PmContract", temp, "id", "name"));
		}
		if (mapRow.get("projectid") != null) {
			temp = mapRow.get("projectid").toString();
			mapRow.put("dispprojectid", datacodeCache.getValueDynamic("PmProject", temp, "id", "name"));
		}

	}

	@Override
	@Resource(name = "pmContractChangeDao")
	public void setDao(IBasicDao<PmContractChangeEntity> dao) {		
		super.setDao(dao);
	}
}
